package com.zheng.business.dao.model;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

public class BusinessAgentBillStatisticsLog implements Serializable {
    /**
     * 编号
     *
     * @mbg.generated
     */
    private Integer id;

    /**
     * 代理ID
     *
     * @mbg.generated
     */
    private Integer agentId;

    /**
     * 总金额
     *
     * @mbg.generated
     */
    private BigDecimal amountTotalBefore;

    /**
     * 扣除后总金额
     *
     * @mbg.generated
     */
    private BigDecimal amountRateTotalBefore;

    /**
     * 剩余未提现金额
     *
     * @mbg.generated
     */
    private BigDecimal amountRemainderBefore;

    /**
     * 总金额
     *
     * @mbg.generated
     */
    private BigDecimal amountTotalAlter;

    /**
     * 扣除后总金额
     *
     * @mbg.generated
     */
    private BigDecimal amountRateTotalAlter;

    /**
     * 剩余未提现金额
     *
     * @mbg.generated
     */
    private BigDecimal amountRemainderAlter;

    /**
     * 产生金额
     *
     * @mbg.generated
     */
    private BigDecimal amount;

    /**
     * 使用扣取比例
     *
     * @mbg.generated
     */
    private BigDecimal rate;

    /**
     * 扣取金额
     *
     * @mbg.generated
     */
    private BigDecimal rateAmount;

    /**
     * 实际入账金额
     *
     * @mbg.generated
     */
    private BigDecimal amountAlter;

    /**
     * 所属子代理ID,多个逗号隔开
     *
     * @mbg.generated
     */
    private String subAgentId;

    /**
     * 生产月：格式为：2018-01
     *
     * @mbg.generated
     */
    private String createMonth;

    /**
     * 创建时间
     *
     * @mbg.generated
     */
    private Date createTime;

    private static final long serialVersionUID = 1L;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getAgentId() {
        return agentId;
    }

    public void setAgentId(Integer agentId) {
        this.agentId = agentId;
    }

    public BigDecimal getAmountTotalBefore() {
        return amountTotalBefore;
    }

    public void setAmountTotalBefore(BigDecimal amountTotalBefore) {
        this.amountTotalBefore = amountTotalBefore;
    }

    public BigDecimal getAmountRateTotalBefore() {
        return amountRateTotalBefore;
    }

    public void setAmountRateTotalBefore(BigDecimal amountRateTotalBefore) {
        this.amountRateTotalBefore = amountRateTotalBefore;
    }

    public BigDecimal getAmountRemainderBefore() {
        return amountRemainderBefore;
    }

    public void setAmountRemainderBefore(BigDecimal amountRemainderBefore) {
        this.amountRemainderBefore = amountRemainderBefore;
    }

    public BigDecimal getAmountTotalAlter() {
        return amountTotalAlter;
    }

    public void setAmountTotalAlter(BigDecimal amountTotalAlter) {
        this.amountTotalAlter = amountTotalAlter;
    }

    public BigDecimal getAmountRateTotalAlter() {
        return amountRateTotalAlter;
    }

    public void setAmountRateTotalAlter(BigDecimal amountRateTotalAlter) {
        this.amountRateTotalAlter = amountRateTotalAlter;
    }

    public BigDecimal getAmountRemainderAlter() {
        return amountRemainderAlter;
    }

    public void setAmountRemainderAlter(BigDecimal amountRemainderAlter) {
        this.amountRemainderAlter = amountRemainderAlter;
    }

    public BigDecimal getAmount() {
        return amount;
    }

    public void setAmount(BigDecimal amount) {
        this.amount = amount;
    }

    public BigDecimal getRate() {
        return rate;
    }

    public void setRate(BigDecimal rate) {
        this.rate = rate;
    }

    public BigDecimal getRateAmount() {
        return rateAmount;
    }

    public void setRateAmount(BigDecimal rateAmount) {
        this.rateAmount = rateAmount;
    }

    public BigDecimal getAmountAlter() {
        return amountAlter;
    }

    public void setAmountAlter(BigDecimal amountAlter) {
        this.amountAlter = amountAlter;
    }

    public String getSubAgentId() {
        return subAgentId;
    }

    public void setSubAgentId(String subAgentId) {
        this.subAgentId = subAgentId;
    }

    public String getCreateMonth() {
        return createMonth;
    }

    public void setCreateMonth(String createMonth) {
        this.createMonth = createMonth;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", agentId=").append(agentId);
        sb.append(", amountTotalBefore=").append(amountTotalBefore);
        sb.append(", amountRateTotalBefore=").append(amountRateTotalBefore);
        sb.append(", amountRemainderBefore=").append(amountRemainderBefore);
        sb.append(", amountTotalAlter=").append(amountTotalAlter);
        sb.append(", amountRateTotalAlter=").append(amountRateTotalAlter);
        sb.append(", amountRemainderAlter=").append(amountRemainderAlter);
        sb.append(", amount=").append(amount);
        sb.append(", rate=").append(rate);
        sb.append(", rateAmount=").append(rateAmount);
        sb.append(", amountAlter=").append(amountAlter);
        sb.append(", subAgentId=").append(subAgentId);
        sb.append(", createMonth=").append(createMonth);
        sb.append(", createTime=").append(createTime);
        sb.append("]");
        return sb.toString();
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        BusinessAgentBillStatisticsLog other = (BusinessAgentBillStatisticsLog) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getAgentId() == null ? other.getAgentId() == null : this.getAgentId().equals(other.getAgentId()))
            && (this.getAmountTotalBefore() == null ? other.getAmountTotalBefore() == null : this.getAmountTotalBefore().equals(other.getAmountTotalBefore()))
            && (this.getAmountRateTotalBefore() == null ? other.getAmountRateTotalBefore() == null : this.getAmountRateTotalBefore().equals(other.getAmountRateTotalBefore()))
            && (this.getAmountRemainderBefore() == null ? other.getAmountRemainderBefore() == null : this.getAmountRemainderBefore().equals(other.getAmountRemainderBefore()))
            && (this.getAmountTotalAlter() == null ? other.getAmountTotalAlter() == null : this.getAmountTotalAlter().equals(other.getAmountTotalAlter()))
            && (this.getAmountRateTotalAlter() == null ? other.getAmountRateTotalAlter() == null : this.getAmountRateTotalAlter().equals(other.getAmountRateTotalAlter()))
            && (this.getAmountRemainderAlter() == null ? other.getAmountRemainderAlter() == null : this.getAmountRemainderAlter().equals(other.getAmountRemainderAlter()))
            && (this.getAmount() == null ? other.getAmount() == null : this.getAmount().equals(other.getAmount()))
            && (this.getRate() == null ? other.getRate() == null : this.getRate().equals(other.getRate()))
            && (this.getRateAmount() == null ? other.getRateAmount() == null : this.getRateAmount().equals(other.getRateAmount()))
            && (this.getAmountAlter() == null ? other.getAmountAlter() == null : this.getAmountAlter().equals(other.getAmountAlter()))
            && (this.getSubAgentId() == null ? other.getSubAgentId() == null : this.getSubAgentId().equals(other.getSubAgentId()))
            && (this.getCreateMonth() == null ? other.getCreateMonth() == null : this.getCreateMonth().equals(other.getCreateMonth()))
            && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getAgentId() == null) ? 0 : getAgentId().hashCode());
        result = prime * result + ((getAmountTotalBefore() == null) ? 0 : getAmountTotalBefore().hashCode());
        result = prime * result + ((getAmountRateTotalBefore() == null) ? 0 : getAmountRateTotalBefore().hashCode());
        result = prime * result + ((getAmountRemainderBefore() == null) ? 0 : getAmountRemainderBefore().hashCode());
        result = prime * result + ((getAmountTotalAlter() == null) ? 0 : getAmountTotalAlter().hashCode());
        result = prime * result + ((getAmountRateTotalAlter() == null) ? 0 : getAmountRateTotalAlter().hashCode());
        result = prime * result + ((getAmountRemainderAlter() == null) ? 0 : getAmountRemainderAlter().hashCode());
        result = prime * result + ((getAmount() == null) ? 0 : getAmount().hashCode());
        result = prime * result + ((getRate() == null) ? 0 : getRate().hashCode());
        result = prime * result + ((getRateAmount() == null) ? 0 : getRateAmount().hashCode());
        result = prime * result + ((getAmountAlter() == null) ? 0 : getAmountAlter().hashCode());
        result = prime * result + ((getSubAgentId() == null) ? 0 : getSubAgentId().hashCode());
        result = prime * result + ((getCreateMonth() == null) ? 0 : getCreateMonth().hashCode());
        result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
        return result;
    }
}